package com.itheima.Operator;
//已知寺庙有三个和尚 身高分别为150 , 165 , 180 通过程序获取三人中最高 中间值  总和
public class Opp03 {
    public static void main(String[] args) {
        int a = 150;
        int b = 165;
        int c = 180;
        //最高值
        int tempmax = a > b ? a : b;
        int max = tempmax > c ? tempmax : c;
        //最低值
        int tempmin = a < b ? a : b;
        int min = tempmin < c ? tempmin : c;
        System.out.println("最高为:"+ max);
        System.out.println("最低为:"+ min);

        int sum = max +min + b;
        System.out.println("总和为" + sum);
        //求和



    }
}
